//
//  MHReadListCell.m
//  ManHua
//
//  Created by 赵永泉 on 15/11/2.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHReadListCell.h"
#import <UIImageView+WebCache.h>

@interface MHReadListCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picture;
@property (weak, nonatomic) IBOutlet UILabel *bookNam;
@property (weak, nonatomic) IBOutlet UILabel *bookAuthor;
@property (weak, nonatomic) IBOutlet UILabel *readSection;

@end

@implementation MHReadListCell

- (void)setComicIntroduct:(MHComicIntroduct *)comicIntroduct
{
    _comicIntroduct = comicIntroduct;
    [_picture sd_setImageWithURL:[NSURL URLWithString:comicIntroduct.BookIconOtherURL] placeholderImage:[UIImage imageNamed:@"39a67b82b2b7d0a2273cbedacaef76094a369a16.jpg"]];
    _bookNam.text = comicIntroduct.BookName;
    _bookAuthor.text = comicIntroduct.BookAuthor;
    if (comicIntroduct.readSection == nil) {
        _readSection.text = @"未看";
    }
    else
        _readSection.text = [NSString stringWithFormat:@"看到%@第%ld页", comicIntroduct.readSection, comicIntroduct.readPage + 1];
}

@end
